<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
   
    <ui:composition template="/views/_template.xhtml">
        <ui:define name="corpo">
            <fieldset style="margin-left: -120px; width: 127%;">
                <legend align="left" ><h3><h:outputText value="Tipo de Nota Fiscal" /></h3></legend>
                <h:form>                  
                    <p:dataTable styleClass="dados" value="#{tipoNotaFiscalBean.tipoNotasFiscais}" var="tipoNF" emptyMessage="Nenhum registro encontrado!">
                        <p:column style="width: 350px" headerText="Descrição" >
                            <h:outputText value="#{tipoNF.descricao}" />
                        </p:column>
                        <p:column style="width: 10px;" headerText="Ação">
                            <center><h:commandLink value="A" action="#{tipoNotaFiscalBean.alterar(tipoNF)}"/></center>
                        </p:column>
                        <p:column style="width: 10px;" headerText="Ação">
                            <center><h:commandLink value="E" action="#{tipoNotaFiscalBean.remover(tipoNF)}"/></center>
                        </p:column>
                     </p:dataTable><br />
                    <h:commandButton value="Novo" action="incluirTipoNotaFiscal"/>
                    <h:commandButton value="Voltar" action="index" immediate="true"/>
                </h:form>
            </fieldset>

        </ui:define>
    </ui:composition>
</html>

